package studio.raptor.hub.in.properties;

/**
 * @author jack
 * @since 1.0
 */
public class HttpConnectionProperties {

  private int maxTotal;

  private int defaultMaxPerRoute;

  private int socketTimeout;

  private int connectTimeout;

  private int connectionRequestTimeout;

  public int getMaxTotal() {
    return maxTotal;
  }

  public void setMaxTotal(int maxTotal) {
    this.maxTotal = maxTotal;
  }

  public int getDefaultMaxPerRoute() {
    return defaultMaxPerRoute;
  }

  public void setDefaultMaxPerRoute(int defaultMaxPerRoute) {
    this.defaultMaxPerRoute = defaultMaxPerRoute;
  }

  public int getSocketTimeout() {
    return socketTimeout;
  }

  public void setSocketTimeout(int socketTimeout) {
    this.socketTimeout = socketTimeout;
  }

  public int getConnectTimeout() {
    return connectTimeout;
  }

  public void setConnectTimeout(int connectTimeout) {
    this.connectTimeout = connectTimeout;
  }

  public int getConnectionRequestTimeout() {
    return connectionRequestTimeout;
  }

  public void setConnectionRequestTimeout(int connectionRequestTimeout) {
    this.connectionRequestTimeout = connectionRequestTimeout;
  }

  @Override
  public String toString() {
    return "HttpConnectionProperties{" +
        "maxTotal=" + maxTotal +
        ", defaultMaxPerRoute=" + defaultMaxPerRoute +
        ", socketTimeout=" + socketTimeout +
        ", connectTimeout=" + connectTimeout +
        ", connectionRequestTimeout=" + connectionRequestTimeout +
        '}';
  }
}
